package com.github.raffle.construction.decorator;

/**
 *
 * @author Stephen
 * @date 2020/6/9 23:45
 */
public abstract class Decorator extends ChineseHamburger {

    private ChineseHamburger chineseHamburger;

    public Decorator(ChineseHamburger chineseHamburger) {
        this.chineseHamburger = chineseHamburger;
    }

    @Override
    public void cost() {
        System.out.println("chinese hamburger cost");
        chineseHamburger.cost();
    }
}
